Fix style
Add test for fallCheck
Simplify fallCheck function
Make hitCheck to normal function
Raise exception when position is illegal