cleaned up a bit
cleaned up a bit
giving the list of valid moves to the functions
fixed a bug with Pawn moves and added a ramdom move generator function