ac.
2 places is very important,
line 40, only left could be -1, the top has to start from 0, since the first time go left already taken top 0
line 62, which is not necessary, the go top would set limits for it. need need to set top in goRight .