moved script to game logic js