added simple control and collision