Changed entity instantiation management.

Factory class has been deleted. Now, entities are created by using their
specific constructors. The Main class has been updated according to
these modifications.