Change abstract method checkCommand in abstract class Figure, implement CheckCommand in King and Pawn classes