Factored out my getEntity() function in favour of Crafty()
Test commit