Add game and player application code
Refactor application.js