Moved js to separate file.

Logic moved to file named game_logic.js