Update and rename Grid.java to W