Prevent IndexOutOfBounds exception
Add some helpers classes
remove comment and sout statement
Try to improve the minimax