Template for java games