Basic game loop & Javadoc