Good game concept! You're right on ambitious to code! Took me a bit of time to figure out how to handle the portals but I did beat the first level!
Thank you for trying the game! Glad you were able to figure it out :)