Split up client-side logic into several files. Basic clicking game, synchronized between two clients.