start to add the entity and raycasting code