public void splash() {
GameState oldgs = gs;
gs = GameState.SPLASH;
Splash splash = new Splash("/splash.png", WIDTH, HEIGHT, screen, SPLASH_TIME);
double startTime = System.currentTimeMillis();
double currentTime = startTime;
while (currentTime - startTime < SPLASH_TIME) {
splash.update((int) ((currentTime - startTime)));
render();
currentTime = System.currentTimeMillis();
}
screen.clear();