Integration of the AI

This commit integrates the AI with the program, so that an AI (which
randomly makes moves) can be played against or can play against itself.
Additionally, the code in Game.java has been simplified through
modularization.