PHP - Checkerboard