keeps player within game bounds