// This registers objects that are going to be sent over the network.
static public void register (EndPoint endPoint) {
Kryo kryo = endPoint.getKryo();
kryo.register(Login.class);
kryo.register(RegistrationRequired.class);
kryo.register(Register.class);
kryo.register(AddCharacter.class);
kryo.register(UpdateCharacter.class);
kryo.register(RemoveCharacter.class);
kryo.register(Character.class);
kryo.register(MoveCharacter.class);