Extracted main functions into game class