fix some directional bugs; terrain generator still doesn't (quite) work