Added a paint

- although it needs more work
- also swapped the poll() return values