Mathematical components of the Cyvasse game (used in server and client)