Added checks for side movement and vertical movement of pieces as two
methods for checking.