moved play_game() outside of documnet ready function