Calculation logic changes

Changed logic for wall/obstacle hit and seconds calculation for actions. 
Solution is still not complete.