Update main.cpp

Added deleteEntity call