getting entities ready

removed tile and started getting entities ready
fixed entities for new entity type

fixed entity functions
fixed errors

fixed code so it compiels now