Add functionality for the chess server. This still needs to be tested.