Adding support for moving Pawn and King

MoveTo function was available for each Piece.
Adding support for checking whether move is legal.
If it is legal then only move the piece.
This support is only for pieces of type King and Pawn.

Signed-off-by: Mayuresh Janorkar <janorkar@usc.edu>