refactors some code, updates game flow, adds box generation