Implementation of Minimax Algorithm in JAVA