collapsed code and coded drawRandomCard