Ok I know what's happening, for now i can fix it by just making the walls thicker, but that isn't a real solution. The fact is that I coded all of the phsics myself without using any phisics engine, so getting everything right is pretty hard hahaha! btw I'm trying your game asap!