Fixed collisions

- Fixed colliding on different z-axis
- Fixed z-axis updating
Merge pull request #8 from Pishka/master

Fixed collisions