Simple test grid in Java