The green player uses the arrow keys, and the purple player uses the WASD keys. You have to collect all the Infinity Stones for Thanos to win.
The idea came from "Coding Games in scratch." Google had the pictures of Thanos, that cool looking gauntlet on the front page, and the Avengers-themed obstacles.