create EndingPanel

create endingPanel (empty)
add endingPanel to mainFrame

add code at mainFrame