added inventory and selection. It's a bit off at the moment becase getCursor position is offcenter and using relative position