Prevented concurrency problems

Added a camera, and mouse handing features.