added entity code for updating/calculating orientation, position and to draw the entity