Fixed bugs in possibleMoves and successPossibleMoves function. Made
changes to how scored variable is updated.