Separated my game methods from the document ready code