added render function to playerView prototype