Refactor game logic into a Board object and cells