Update MachinePlayer.java 

legalMoves method implemented