Oil game in Java