refactored setx, sety
initial implementation of capture
refactor to subclass from entity