Write a script in Python that makes a model-based ai which can beat Space Invaders