Java Brick Game Solution