Creating Checkerboard Pattern In Java