Fixed vertical collisions.

Added horizontal collisions' function header.