Simple scrolling game in Java