Grazie a tutti! Ho risolto spostando alcuni pezzi in metodi static....