added resign game functionality