Web: JS refactoring
Web: Select snakes for battle