Added pixel perfect raycasting, added trail class for future use