added validation of possible moves, create grid