GridWorld case study for AP CS