finally got map collision working