fixed error due to this.ship = ship in square.js