entity drawing almost working correctly