WIP player position function and checks. BUGGED!