Tilt detection for all four directions implemented