WORKING COPY

Implemented SDL input handling