java game prototype