removes the playGame function and executes initial variable assignment on document ready