Algo.java

Calculated desired move