Update MainGrid.java

checkResources() comment