RATIONALE: Drugs used in chemotherapy use different ways to stop tumor cells from dividing so they stop growing or die. Thalidomide and celecoxib may stop the growth of tumor cells by stopping blood flow to the tumor and may increase the effectiveness of temozolomide by making tumor cells more sensitive to the drug.