Refactor game obects into modules