Python implementation to Spotify's catvsdog puzzle. Hands off!