Setting up functions - Duel 1