refactoring structure to accomodate for scaling up the number of objects in the game.