The Penguin follows your mouse. You can't crash into Treasure Island or else you won't be able to get the treasure. Get the treasure and win the game.
sayguy120 helped me a little bit with the movement, and I used an Idea from a book about coding.