added check for cursor before switching to paddle or ball, added random switch from paddle to cursor or ball