Basic raycaster to learn haskell