Andrew's java game