Added validation of command direction for king and pawns