Added logic which does not draw the out of screen players.