Moved diagonal/straight code into reusable functions in preparation for queen validMoves for queen.