Improved playerscript

Still some buggy behavior sometimes when the character jumps up against
walls. But no more sticking to walls/stuck on corners/not being able to
jump when you should.