code for the java pokemon knock-off