typedef enum and structs for the chess model added..