Javascript 2D Space Game