restricted player max and min x axis