Recreating spaceinvaders in java script