Working on Minimax, added javadoc where necessary