The core game logic for puissance4java (connect 4 in java)