if( losewin == 0) { GreenfootImage scoreboard = new GreenfootImage (100,30); scoreboard.drawString ("You Win! Score: " + scoreKeep, 200, 200); setImage (scoreboard); } if (losewin == 1) { GreenfootImage scoreboard = new GreenfootImage (100,30); scoreboard.drawString ("You Lose! Score: " + scoreKeep, getWorld().getWidth()/2, getWorld().getHeight()/2); setImage (scoreboard); }