Functional Interface Java Coding For Games