Adding javadoc comments, cleaning up memory leaks, added alpha-beta pruning to minimax search, added some testes and cleaned up code