Trying to make a 2d game in java.