removed playerWidth and playerHeight