Added AI by Ricardo Cruz. This also adds mouse controls.