Calculate if jump is possible - C#