Generalized Entity code. Capped cursors to screen. Added preliminary HUD drawing