Routines| H | Pellet's character number |
| 30205 | 2E01 | LD L,1 | |
| 30207 | 5E | LD E,(HL) | E=pellet's x-coordinate |
| 30208 | 2C | INC L | |
| 30209 | 56 | LD D,(HL) | D=pellet's y-coordinate |
| 30210 | 1C | INC E | |
| 30211 | 14 | INC D | |
| 30212 | 7A | LD A,D | |
| 30213 | FE0E | CP 14 | All the cups have y-coordinate of 14 |
| 30215 | C0 | RET NZ | Return with zero flag reset if pellet's y-coordinate doesn't match |
| 30216 | 7B | LD A,E |
| 30217 | FE19 | CP 25 | Has the pellet hit the leftmost cup on the shelf in the boys' skool? |
| 30219 | C8 | RET Z | Return if so |
| 30220 | FE1B | CP 27 | Has the pellet hit the middle cup on the shelf in the boys' skool? |
| 30222 | C8 | RET Z | Return if so |
| 30223 | FE1E | CP 30 | Has the pellet hit the rightmost cup on the shelf in the boys' skool? |
| 30225 | C8 | RET Z | Return if so |
| 30226 | FEBA | CP 186 | Has the pellet hit the cup on the shelf in the girls' skool? |
| 30228 | C9 | RET | Return with the zero flag set if so |