for java game!