Refactors game