using calculated playerWidth and playerHeight