Fixed constructor to be public
Added method for checking if an entity has a certain component