More logic, almost ready for drawing player, small errors, will fix
soon.