added the checkCommand to the server, to check game messages before they are forwarded to clients