I had the same problem with my cat,Midnight.Like you,I tried giving him something fun to do.One day when i was trying this in my room and he was resisting my efforts,he stepped on my pillow and it made him feel really good.now,he is not as obsessed with going outside because he is content to just sleep and play around on my bed.