Detectives are working on the theory that Kretschmer , described as a shy loner who had never had a girlfriend , may have been motivated by a grudge against girls , possibly after being snubbed by female classmates at the school , which he left last year .