First, you have to make the situation clear, since it might not necessarily mean that he 'just wants to mess with you', and by nature, most guys are insecure in anything that has to do with love.
Anyway, if the case is as it is given, then you should try to interest him. If he still doesn't give in, then he's probably, and most likely, not interested in you more than a friend (*might not be true if he's just a shy guy). You can also try making him jealous of you, but I doubt that's going to work
kameron98