compatible for different window sizes

dodec finds hill and then jumps relative to height of window