added simple finding opponent function