Moved game logic into coordinate component.