pokémon and terrain collision works

I got collision detection between Pokémon and the terrain working. It's
not quite how I wanted to do it and it can definitely be improved, but
at least it works now.