Yea multiple posts! Went throught a lot of crap to find out that this was the problem:

Code:
player.y = clamp(player.y,border_left.y,border_right.y);


Should be:

Code:
player.y = clamp(player.y,border_right.y,border_left.y);


No more dangerous borders! Thanks a lot!