In its current form, if I put the shortcode after content, it displays the chat before the content because it is using the echo method rather than the return method. In the main and chat file I'd like to suggest changing this line...
$chat->printChat();
to this...
$output = $chat->printChat(true);
return $output;