Added goals, scoring and AI, improved code