change move arrays to structs, create in check and checkmate methods