added random mode to player