Implement physics,graphics an ai

How can i implement graphics,physics and ai? If i find any bugs how can i fix them?