Algo.java

calculated moves