I already made an update that should prevent the player from glitching out of the map. I cheated a bit though. I made the bounding boxes of the walls much bigger. So they expand outside the screen
The canvas now also scales to the window size while keeping the aspect ration making the game always full screen. Or at least full window.