Changed Logic in PossibleMoves, Diagonals Not Done

The Horizontal and Verticle works just fine and handles big numbers
well, but I still have not found a way to handle diagonals properly, if
anyone thinks they have an idea you are welcome to make changes