Added camera class with my previous implementation, is on changeing state
Fixed camera function