Added basic check to make sure a piece has a valid move