all the pieces movements are now implemneted apart from a couple of special moves.
implemented the checkmate