class main extends sprite